#include <iostream>
int main(int argc, char const *argv[])
{
	int sum = 0; value = 0;
	std::cout << "请输入一些数，按Ctrl+Z表示结束：" << std::endl;
	for (; std::cin >> value;)
	{
		sum += value;
	}
	std::cout << "读入的数只和为：" << sum << std::endl;
	system("pause");
	return 0;
}